<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
h= Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
var sWidth = parseInt((window.innerWidth > 0) ? window.innerWidth : screen.width);
if(sWidth>750){sWidth=750;}
var _rate=(sWidth/750);
if(h<_rate*1206){h=_rate*1206;}
function fixScroll(){
    let u = navigator.userAgent;
    let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
    if (isiOS) {
      window.scrollTo(0, 0);
    }
}
$("input, select").blur(function(){fixScroll()});
var _userNJ=3;
$(function(){
	$('.container, .bg, .page').width(sWidth).height(h);
	$('.p1-bg, .rule-t1').width(sWidth).height(_rate*1206);
	$('.thebg, .p-b').width(sWidth).height(_rate*1206);
	$('.p1-t1').height(_rate*576).css({"top":_rate*300});
	$('.p1-bao').width(_rate*500).height(_rate*152).css({"top":_rate*310, "left":_rate*120});
	 
	$(".p1").show();

	if(h > _rate*1206){
		   var _cha= h - _rate*1246;
		   if(_cha > 0){
			  $('.p1x').attr("src","<?php echo $url; ?>img/index-x.jpg").height(_rate*1464);
		      $('.thebg').css({"top":_cha/3});
		       
		      
		   }
	}
	$(".p1-bao").click(function(){
		popMsg('考试已结束');return;
    
	});
 

	function popMsg(msg){
		$(".weui-msg").html(msg);
        $("#iosDialog2").show();
	}
 
	$(".weui-btn").click(function(){
        $("#iosDialog2").hide();
	});

 
	  
 
});
</script>